
public class concurrent {
    public static void main(String[]args){
       Family family = new Family("幸福之家");
       Father father = new Father("maze");
       Wife wife = new Wife("wife");
       Son son = new Son("son");
       family.setFamily(family);
       family.setFather(father);
       family.setWife(wife);
       family.setSon(son);
       new Thread(new FatherTask(father,12)).start();
       new Thread(new SonTask(son)).start();
       new Thread(new WifeTask(wife)).start();
    }
}
